/**
 * Copyright 2009 University of  Washington
 * This code is released under the GPL version 3 - with a copy of the license included
 * @author Maya Hao Li
 *
 */
package seedpod.webapp.view.htmlwidget;

public class TextButton extends GenericHtmlWidget
{
  public static final String CSS_CLASS = "textButton"; // this class makes it look like button
  private String menuText, menuLink;

  public TextButton(String widgetID, String menuText, String menuLink)
  {
    this._widgetID = widgetID;
    this.menuText = menuText;
    this.menuLink = menuLink;
    this.setCssClass(CSS_CLASS);
  }

  public String render()
  {
    String html = "<a id=\""+_widgetID+"\" class=\"" + _cssClass + "\" href=\""+menuLink+"\">";
    html += menuText;
    html += "</a>";
    return html;
  }
}
